package com.betterjr.modules.temhandler.dubbo;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.betterjr.mapper.pagehelper.Page;
import com.betterjr.modules.temhandler.dubbo.interfaces.ITemDataService;
import com.betterjr.modules.temhandler.entity.TemData;
import com.betterjr.modules.temhandler.service.TemDataService;

@Service(interfaceClass = ITemDataService.class)
public class TemDataDubboService implements ITemDataService {

    @Autowired
    private TemDataService temDataService;

    /**
     * 根据表类型和表主键查询 临时数据
     * <p>Overriding Method of webQueryTemData</p>  
     * <p>Description: </p> 
     * @param anClassUrl
     * @param anBusinTableId
     * @param anBusinStatus 状态1刚插入  2已复核  3已审核   4 生效 9删除
     * @return 
     * @see com.betterjr.modules.temhandler.dubbo.interfaces.ITemDataService#webQueryTemData(java.lang.String, java.lang.String, java.lang.String) 
     * @author xuyp
     * @date 2017年12月26日 上午8:55:07
     */
    @Override
    public List<TemData> queryTemData(String anClassUrl, String anBusinTableId, String anBusinStatus) {

        return temDataService.queryTemData(anClassUrl, anBusinTableId, anBusinStatus);
    }

    @Override
    public TemData saveAuditTemData(Long anId, String anDescription, Map<String, Object> anMap) {

        return temDataService.saveAuditTemData(anId, anDescription, anMap);
    }

    @Override
    public TemData saveDeleteTemData(Long anId, String anDescription) {

        return temDataService.saveDeleteTemData(anId, anDescription);
    }

    @Override
    public TemData saveAddTemData(TemData anTemData) {

        return temDataService.saveAddTemData(anTemData);
    }

    @Override
    public TemData findTemDataByid(Long id) {

        return temDataService.findTemDataByid(id);
    }

    @Override
    public Page<TemData> queryTemData(String anClassUrl, String anBusinStatus, Map<String, Object> anQueryMap,
            String anFlag, int anPageNum, int anPageSize) {

        return temDataService.queryTemData(anClassUrl, anBusinStatus, anQueryMap, anFlag, anPageNum, anPageSize);
    }

    @Override
    public List<TemData> saveUpdateTemDataStatus(String anIds, String anBusinStatus) {

        return temDataService.saveUpdateTemDataStatus(anIds, anBusinStatus);
    }

}
